<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			#box{
				width: 200px;
				height: 200px;
				background-color: palevioletred;
				opacity: 0.3;
			}
		</style>
	</head>
	<body>
		<div id="box"></div>
		<script src="js/MyAnimation.js"></script>
		<script>
			window.onload = function() {
				let box = document.getElementById('box');
				box.onmouseover = function() {
					startAnimation(box,'width',500,function() {
						startAnimation(box,'height',400,function(){
							startAnimation(box,'opacity',100)
						});
					});
				}
			}
		</script>
	</body>
</html>